package com.tiger.cloud.service.crm;

import com.tiger.cloud.model.crm.Commucation;
import com.tiger.cloud.model.crm.SystemCommucation;
import com.tiger.cloud.util.Page;

import java.util.List;

import com.tiger.cloud.common.mybatis.TigerBaseServiceI;

/**
 * 交流记录
 */
public interface ICommucationService extends TigerBaseServiceI<Commucation> {

	Commucation getCommucation(Commucation commucation);

	Page<Commucation> findByGroupCustomer(Commucation commucation);
	/**
	 * 发送系统交流消息到Commucation
	 */
	boolean insertSystemCommucation(SystemCommucation systemCommucation);
	/**
	 * 发送系统交流消息到Commucation
	 */
	boolean insertSystemCommucation(List<SystemCommucation> systemCommucation);
	
	boolean insertAndUpdateCommunicatTime(Commucation commucation);
	
	boolean updateByUserId(Commucation commucation);

	boolean updateLastCommunicateTime(Commucation commucation);
}